package ua.kpi.ustymenko.testcase.question;

import ua.kpi.ustymenko.counter.AnswersScoreCounter;
import ua.kpi.ustymenko.parser.AnswersParser;
import ua.kpi.ustymenko.testcase.Answers;

public abstract class AlternativesQuestion extends AbstractQuestion {
    private Answers alternatives;

    public AlternativesQuestion(String value,
                                Answers correctAnswers,
                                Answers alternatives,
                                AnswersScoreCounter counter,
                                AnswersParser parser) {
        super(value, correctAnswers, counter, parser);
        this.alternatives = alternatives;
    }

    public String getAlternativeText(int index) {
        return alternatives.getAnswerText(index);
    }

    @Override
    public String toString() {
        return super.toString() + alternatives;
    }
}
